package com.lechuang.member.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lechuang.common.model.BaseEntity;
import com.lechuang.member.entity.MemberGroupBuyLevel;
import com.lechuang.member.entity.MemberLevel;
import com.lechuang.member.entity.MemberStarLevel;
import com.lechuang.member.service.MemberStarLevelService;
import com.lechuang.member.mapper.MemberStarLevelMapper;
import org.springframework.stereotype.Service;

/**
* @author apple
* @description 针对表【member_start_level(会员星级基础表)】的数据库操作Service实现
* @createDate 2024-06-22 19:58:25
*/
@Service
public class MemberStarLevelServiceImpl extends ServiceImpl<MemberStarLevelMapper, MemberStarLevel>
    implements MemberStarLevelService {

    @Override
    public MemberStarLevel queryDefalut() {
        MemberStarLevel memberStarLevel = this.lambdaQuery()
                .eq(MemberStarLevel::getDefaultFlag, MemberLevel.DEFAULT_FLAG)
                .eq(MemberStarLevel::getStatus, BaseEntity.STATUS_NORMAL)
                .one();
        return memberStarLevel;
    }
}




